package cn.csddxt.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.csdd.service.RoleService;
import cn.csddxt.entity.Role;

@Service("RoleDao")
public class RoleDao {
	// public static RoleDao roledao = new RoleDao();
	@Autowired
	@Qualifier("roleService")
	private RoleService rs;

	public void setRs(RoleService rs) {
		this.rs = rs;
	}

	public List<Role> roleAll() {
		List<Role> list = this.rs.RoleAll();
		return list;
	}

	public static void main(String[] args) {
		/*
		 * List<Role> in = RoleDao.roledao.roleAll(); for (Role role : in) {
		 * System.out.println(role.getRoleName() + "-------" + role.getId()); }
		 */
	}
}
